package org.jypj.dev.service.impl;

import org.jypj.dev.dao.IEmergeFileDao;
import org.jypj.dev.dao.IUserWorkFileDao;
import org.jypj.dev.model.EmergeFile;
import org.jypj.dev.service.IEmergeFileService;
import org.jypj.dev.service.IUserWorkFileService;
import org.jypj.dev.util.Page;
import org.jypj.dev.vo.EmergyUser;
import org.jypj.dev.vo.UserWorkFileVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.UUID;

@Service("userWorkFileService")
public class UserWorkFileServiceImpl implements IUserWorkFileService {

    @Resource
    private IUserWorkFileDao userWorkFileDao;


    @Override
    public List<UserWorkFileVo> selectAllByMap(Map<String, Object> map) {
        List<UserWorkFileVo> userWorkFileVos = userWorkFileDao.selectAllWorkByMap(map);
        List<UserWorkFileVo> userWorkFileVos1 = userWorkFileDao.selectAllEmergeByMap(map);
        if (userWorkFileVos1!=null){
            userWorkFileVos.addAll(userWorkFileVos1);
        }
        return userWorkFileVos;
    }
}